import request from "@/utils/request"

export const getAllApi = (pageNum, pageSize) => {
  return request.get(`/warehousing/entry/up?pageNum=${pageNum}&pageSize=${pageSize}`)
}
export const addApi = (data) => {
  return request.post(`/warehousing/entry/up`, data)
}
export const showBackApi = (id) => {
  return request.get(`/warehousing/entry/up/${id}`)
}
export const updateApi = (data) => {
  return request.put(`/warehousing/entry/up`, data)
}
export const delApi = (ids) => {
  return request.delete(`/warehousing/entry/up?ids=${ids}`)
}
export const getInfoApi = () => {
  return request.get(`/warehousing/entry/up/info`)
}
export const getInfoBySkuApi = (skuId) => {
  return request.get(`/warehousing/entry/up/getInfoBySku/${skuId}`)
}